#ifndef AUDIOTHREAD_H
#define AUDIOTHREAD_H

#include <QThread>
#include "decoder.h"

class AudioThread : public QThread
{
    Q_OBJECT
public:
    explicit AudioThread(QObject *parent = nullptr);

    void openAudioDecoder();
    void addList(AVPacket * pkt);

protected:

    void run() override;

private:

    Decoder audioDecoder;

};

#endif // AUDIOTHREAD_H
